<?php
namespace Forms\Validator;

use Pinenut\Form\Validator;

class EmailAction extends Validator
{
	protected $defaultErrorMessage = 'Not a valid email address';

	protected function isValid($value, $params)
	{
		return filter_var($value, FILTER_VALIDATE_EMAIL);
	}
}